package com.itheima.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface GroupItemMapper {

    @Insert("insert into group_item(item_id,group_id) values(#{checkitemId},#{checkGroupId})")
    void insert(Integer checkitemId, Integer checkGroupId);

    @Delete("delete from group_item where group_id = #{checkGroupId}")
    void deleteByGroupId(Integer checkGroupId);
}
